package stu.ais.HomeWork;

public class ComputerTest {

    public static void main(String[] args) {
        //1. 创建一个computer对象
        //Computer c = new Computer();
        //c.setBrand("mac");
        //c.setPrice(30000.0);

        Computer c = new Computer("mac",30000.0d);
        //2. 创建一个显示器的对象
        Screen s = new Screen("CRT",20,"三星");

        //3. 将显示器的对象设置到计算机类中 - 绑定

        c.setScreen(s);


        System.out.println(c);
        System.out.println(c.getScreen());

    }
}
